object frmGeraConsulta: TfrmGeraConsulta
  Left = 394
  Top = 187
  BorderStyle = bsSingle
  Caption = 'Gerar Consultas'
  ClientHeight = 461
  ClientWidth = 752
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  FormStyle = fsMDIChild
  OldCreateOrder = False
  Position = poDefault
  Scaled = False
  Visible = True
  OnClose = FormClose
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  object Panel1: TPanel
    Left = 0
    Top = 0
    Width = 752
    Height = 460
    Align = alTop
    BevelOuter = bvNone
    TabOrder = 0
    object Panel2: TPanel
      Left = 0
      Top = 0
      Width = 185
      Height = 460
      Align = alLeft
      TabOrder = 0
      object Panel4: TPanel
        Left = 1
        Top = 1
        Width = 183
        Height = 224
        Align = alTop
        TabOrder = 0
        object lbTabela: TListBox
          Left = 1
          Top = 1
          Width = 181
          Height = 201
          Align = alClient
          ItemHeight = 13
          TabOrder = 0
          OnClick = lbTabelaClick
        end
        object Panel5: TPanel
          Left = 1
          Top = 202
          Width = 181
          Height = 21
          Align = alBottom
          BevelOuter = bvLowered
          TabOrder = 1
          DesignSize = (
            181
            21)
          object btnDelTable: TBitBtn
            Left = 6
            Top = 0
            Width = 20
            Height = 20
            Anchors = [akLeft, akBottom]
            TabOrder = 0
            OnClick = btnDelTableClick
            Glyph.Data = {
              E6000000424DE60000000000000076000000280000000E0000000E0000000100
              0400000000007000000000000000000000001000000000000000000000000000
              BF0000BF000000BFBF00BF000000BF00BF00BFBF0000C0C0C000808080000000
              FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
              3300333333333333330033333333333333003333333333333300333333333333
              330033333333333333003300000000003300330FFFFFFFF03300330000000000
              3300333333333333330033333333333333003333333333333300333333333333
              33003333333333333300}
          end
          object btnAddTable: TBitBtn
            Left = 26
            Top = 0
            Width = 20
            Height = 20
            Anchors = [akLeft, akBottom]
            TabOrder = 1
            OnClick = btnAddTableClick
            Glyph.Data = {
              E6000000424DE60000000000000076000000280000000E0000000E0000000100
              0400000000007000000000000000000000001000000000000000000000000000
              BF0000BF000000BFBF00BF000000BF00BF00BFBF0000C0C0C000808080000000
              FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
              3300333333333333330033333333333333003333300033333300333330F03333
              3300333330F033333300330000F000033300330FFFFFFF033300330000F00003
              3300333330F033333300333330F0333333003333300033333300333333333333
              33003333333333333300}
          end
        end
      end
      object Panel6: TPanel
        Left = 1
        Top = 224
        Width = 183
        Height = 235
        Align = alBottom
        TabOrder = 1
        object Panel7: TPanel
          Left = 1
          Top = 213
          Width = 181
          Height = 21
          Align = alBottom
          BevelOuter = bvLowered
          TabOrder = 0
          DesignSize = (
            181
            21)
          object btnAddField: TBitBtn
            Left = 26
            Top = 0
            Width = 20
            Height = 20
            Anchors = [akLeft, akBottom]
            TabOrder = 1
            OnClick = btnAddFieldClick
            Glyph.Data = {
              E6000000424DE60000000000000076000000280000000E0000000E0000000100
              0400000000007000000000000000000000001000000000000000000000000000
              BF0000BF000000BFBF00BF000000BF00BF00BFBF0000C0C0C000808080000000
              FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
              3300333333333333330033333333333333003333300033333300333330F03333
              3300333330F033333300330000F000033300330FFFFFFF033300330000F00003
              3300333330F033333300333330F0333333003333300033333300333333333333
              33003333333333333300}
          end
          object btnDelField: TBitBtn
            Left = 6
            Top = 0
            Width = 20
            Height = 20
            Anchors = [akLeft, akBottom]
            TabOrder = 0
            OnClick = btnDelFieldClick
            Glyph.Data = {
              E6000000424DE60000000000000076000000280000000E0000000E0000000100
              0400000000007000000000000000000000001000000000000000000000000000
              BF0000BF000000BFBF00BF000000BF00BF00BFBF0000C0C0C000808080000000
              FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
              3300333333333333330033333333333333003333333333333300333333333333
              330033333333333333003300000000003300330FFFFFFFF03300330000000000
              3300333333333333330033333333333333003333333333333300333333333333
              33003333333333333300}
          end
        end
        object lbColuna: TListBox
          Left = 1
          Top = 1
          Width = 181
          Height = 212
          Align = alClient
          ItemHeight = 13
          MultiSelect = True
          TabOrder = 1
          OnClick = lbColunaClick
        end
      end
    end
    object Panel3: TPanel
      Left = 185
      Top = 0
      Width = 567
      Height = 460
      Align = alClient
      TabOrder = 1
      object DBGrid1: TDBGrid
        Left = 1
        Top = 112
        Width = 565
        Height = 296
        Align = alBottom
        DataSource = DSGrid
        Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit]
        ReadOnly = True
        TabOrder = 0
        TitleFont.Charset = DEFAULT_CHARSET
        TitleFont.Color = clWindowText
        TitleFont.Height = -11
        TitleFont.Name = 'MS Sans Serif'
        TitleFont.Style = []
      end
      object Panel8: TPanel
        Left = 1
        Top = 1
        Width = 25
        Height = 79
        Align = alLeft
        TabOrder = 1
        object btnExecSQL: TBitBtn
          Left = 0
          Top = 25
          Width = 25
          Height = 25
          TabOrder = 1
          OnClick = btnExecSQLClick
          Glyph.Data = {
            76010000424D7601000000000000760000002800000020000000100000000100
            04000000000000010000130B0000130B00001000000000000000000000000000
            800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
            33333333333333333333EEEEEEEEEEEEEEE333FFFFFFFFFFFFF3E00000000000
            00E337777777777777F3E0F77777777770E337F33333333337F3E0F333333333
            70E337F3333F333337F3E0F33303333370E337F3337FF33337F3E0F333003333
            70E337F33377FF3337F3E0F33300033370E337F333777FF337F3E0F333000033
            70E337F33377773337F3E0F33300033370E337F33377733337F3E0F333003333
            70E337F33377333337F3E0F33303333370E337F33373333337F3E0F333333333
            70E337F33333333337F3E0FFFFFFFFFFF0E337FFFFFFFFFFF7F3E00000000000
            00E33777777777777733EEEEEEEEEEEEEEE33333333333333333}
          NumGlyphs = 2
        end
        object btnStop: TBitBtn
          Left = 0
          Top = 0
          Width = 25
          Height = 25
          TabOrder = 0
          OnClick = btnStopClick
          Glyph.Data = {
            76010000424D7601000000000000760000002800000020000000100000000100
            04000000000000010000130B0000130B00001000000000000000000000000000
            800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
            33333333333333333333EEEEEEEEEEEEEEE333FFFFFFFFFFFFF3E00000000000
            00E337777777777777F3E0F77777777770E337F33333333337F3E0F333333333
            70E337F33333333337F3E0F33333333370E337F333FFFFF337F3E0F330000033
            70E337F3377777F337F3E0F33000003370E337F3377777F337F3E0F330000033
            70E337F3377777F337F3E0F33000003370E337F3377777F337F3E0F330000033
            70E337F33777773337F3E0F33333333370E337F33333333337F3E0F333333333
            70E337F33333333337F3E0FFFFFFFFFFF0E337FFFFFFFFFFF7F3E00000000000
            00E33777777777777733EEEEEEEEEEEEEEE33333333333333333}
          NumGlyphs = 2
        end
        object btnTudo: TBitBtn
          Left = 0
          Top = 50
          Width = 25
          Height = 25
          TabOrder = 2
          OnClick = btnTudoClick
          Glyph.Data = {
            76010000424D7601000000000000760000002800000020000000100000000100
            04000000000000010000120B0000120B00001000000000000000000000000000
            800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00555555000000
            000055555F77777777775555000FFFFFFFF0555F777F5FFFF55755000F0F0000
            FFF05F777F7F77775557000F0F0FFFFFFFF0777F7F7F5FFFFFF70F0F0F0F0000
            00F07F7F7F7F777777570F0F0F0FFFFFFFF07F7F7F7F5FFFFFF70F0F0F0F0000
            00F07F7F7F7F777777570F0F0F0FFFFFFFF07F7F7F7F5FFF55570F0F0F0F000F
            FFF07F7F7F7F77755FF70F0F0F0FFFFF00007F7F7F7F5FF577770F0F0F0F00FF
            0F057F7F7F7F77557F750F0F0F0FFFFF00557F7F7F7FFFFF77550F0F0F000000
            05557F7F7F77777775550F0F0000000555557F7F7777777555550F0000000555
            55557F7777777555555500000005555555557777777555555555}
          NumGlyphs = 2
        end
      end
      object gbNovaConsulta: TGroupBox
        Left = 392
        Top = 1
        Width = 174
        Height = 79
        Align = alRight
        Caption = 'Consultas'
        TabOrder = 2
        object cbConsultas: TComboBox
          Left = 8
          Top = 16
          Width = 161
          Height = 21
          CharCase = ecUpperCase
          ItemHeight = 13
          MaxLength = 15
          TabOrder = 0
          OnSelect = cbConsultasSelect
          Items.Strings = (
            '')
        end
        object btnSelect: TBitBtn
          Left = 8
          Top = 40
          Width = 25
          Height = 25
          Hint = 'Exibe a consulta escolhida'
          Enabled = False
          ParentShowHint = False
          ShowHint = True
          TabOrder = 1
          OnClick = btnSelectClick
          Glyph.Data = {
            76010000424D7601000000000000760000002800000020000000100000000100
            04000000000000010000120B0000120B00001000000000000000000000000000
            800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333300000000
            0000333377777777777733330FFFFFFFFFF033337F3FFF3F3FF733330F000F0F
            00F033337F777373773733330FFFFFFFFFF033337F3FF3FF3FF733330F00F00F
            00F033337F773773773733330FFFFFFFFFF033337FF3333FF3F7333300FFFF00
            F0F03333773FF377F7373330FB00F0F0FFF0333733773737F3F7330FB0BF0FB0
            F0F0337337337337373730FBFBF0FB0FFFF037F333373373333730BFBF0FB0FF
            FFF037F3337337333FF700FBFBFB0FFF000077F333337FF37777E0BFBFB000FF
            0FF077FF3337773F7F37EE0BFB0BFB0F0F03777FF3733F737F73EEE0BFBF00FF
            00337777FFFF77FF7733EEEE0000000003337777777777777333}
          NumGlyphs = 2
        end
        object btnSalva: TBitBtn
          Left = 40
          Top = 40
          Width = 25
          Height = 25
          Hint = 'Salva/Altera a consulta'
          Enabled = False
          ParentShowHint = False
          ShowHint = True
          TabOrder = 2
          OnClick = btnSalvaClick
          Glyph.Data = {
            76010000424D7601000000000000760000002800000020000000100000000100
            04000000000000010000120B0000120B00001000000000000000000000000000
            800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
            333333FFFFFFFFFFFFF33000077777770033377777777777773F000007888888
            00037F3337F3FF37F37F00000780088800037F3337F77F37F37F000007800888
            00037F3337F77FF7F37F00000788888800037F3337777777337F000000000000
            00037F3FFFFFFFFFFF7F00000000000000037F77777777777F7F000FFFFFFFFF
            00037F7F333333337F7F000FFFFFFFFF00037F7F333333337F7F000FFFFFFFFF
            00037F7F333333337F7F000FFFFFFFFF00037F7F333333337F7F000FFFFFFFFF
            00037F7F333333337F7F000FFFFFFFFF07037F7F33333333777F000FFFFFFFFF
            0003737FFFFFFFFF7F7330099999999900333777777777777733}
          NumGlyphs = 2
        end
        object btnNovo: TBitBtn
          Left = 72
          Top = 40
          Width = 25
          Height = 25
          Hint = 'Cria uma nova consulta'
          ParentShowHint = False
          ShowHint = True
          TabOrder = 3
          OnClick = btnNovoClick
          Glyph.Data = {
            76010000424D7601000000000000760000002800000020000000100000000100
            04000000000000010000130B0000130B00001000000000000000000000000000
            800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF0033333333B333
            333B33FF33337F3333F73BB3777BB7777BB3377FFFF77FFFF77333B000000000
            0B3333777777777777333330FFFFFFFF07333337F33333337F333330FFFFFFFF
            07333337F33333337F333330FFFFFFFF07333337F33333337F333330FFFFFFFF
            07333FF7F33333337FFFBBB0FFFFFFFF0BB37777F3333333777F3BB0FFFFFFFF
            0BBB3777F3333FFF77773330FFFF000003333337F333777773333330FFFF0FF0
            33333337F3337F37F3333330FFFF0F0B33333337F3337F77FF333330FFFF003B
            B3333337FFFF77377FF333B000000333BB33337777777F3377FF3BB3333BB333
            3BB33773333773333773B333333B3333333B7333333733333337}
          NumGlyphs = 2
        end
        object btnExclui: TBitBtn
          Left = 104
          Top = 40
          Width = 25
          Height = 25
          Hint = 'Exclui uma consulta existente'
          Enabled = False
          ParentShowHint = False
          ShowHint = True
          TabOrder = 4
          OnClick = btnExcluiClick
          Glyph.Data = {
            76010000424D7601000000000000760000002800000020000000100000000100
            04000000000000010000120B0000120B00001000000000000000000000000000
            800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333000000000
            3333333777777777F3333330F777777033333337F3F3F3F7F3333330F0808070
            33333337F7F7F7F7F3333330F080707033333337F7F7F7F7F3333330F0808070
            33333337F7F7F7F7F3333330F080707033333337F7F7F7F7F3333330F0808070
            333333F7F7F7F7F7F3F33030F080707030333737F7F7F7F7F7333300F0808070
            03333377F7F7F7F773333330F080707033333337F7F7F7F7F333333070707070
            33333337F7F7F7F7FF3333000000000003333377777777777F33330F88877777
            0333337FFFFFFFFF7F3333000000000003333377777777777333333330777033
            3333333337FFF7F3333333333000003333333333377777333333}
          NumGlyphs = 2
        end
        object btnCancela: TBitBtn
          Left = 136
          Top = 40
          Width = 25
          Height = 25
          Hint = 'Cancela a a'#231#227'o'
          ParentShowHint = False
          ShowHint = True
          TabOrder = 5
          OnClick = btnCancelaClick
          Glyph.Data = {
            76010000424D7601000000000000760000002800000020000000100000000100
            04000000000000010000130B0000130B00001000000000000000000000000000
            800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
            FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
            3333333333FFFFF3333333333999993333333333F77777FFF333333999999999
            3333333777333777FF3333993333339993333377FF3333377FF3399993333339
            993337777FF3333377F3393999333333993337F777FF333337FF993399933333
            399377F3777FF333377F993339993333399377F33777FF33377F993333999333
            399377F333777FF3377F993333399933399377F3333777FF377F993333339993
            399377FF3333777FF7733993333339993933373FF3333777F7F3399933333399
            99333773FF3333777733339993333339933333773FFFFFF77333333999999999
            3333333777333777333333333999993333333333377777333333}
          NumGlyphs = 2
        end
      end
      object mInstrucao: TMemo
        Left = 26
        Top = 1
        Width = 366
        Height = 79
        Align = alClient
        ScrollBars = ssVertical
        TabOrder = 3
        OnExit = mInstrucaoExit
      end
      object Panel9: TPanel
        Left = 1
        Top = 408
        Width = 565
        Height = 51
        Align = alBottom
        BevelOuter = bvNone
        TabOrder = 4
        object btnAvancado: TButton
          Left = 488
          Top = 0
          Width = 75
          Height = 25
          Hint = 'Op'#231#245'es avan'#231'adas de consulta'
          Caption = 'Avan'#231'ado...'
          ParentShowHint = False
          ShowHint = True
          TabOrder = 0
          OnClick = btnAvancadoClick
        end
        object btnSair: TBitBtn
          Left = 488
          Top = 24
          Width = 75
          Height = 25
          Caption = 'Sair'
          TabOrder = 1
          Kind = bkClose
        end
        object btnPlanilha: TButton
          Left = 3
          Top = 3
          Width = 80
          Height = 25
          Caption = 'Gerar Planilha'
          Enabled = False
          TabOrder = 2
          OnClick = btnPlanilhaClick
        end
      end
      object pnlParametros: TPanel
        Left = 1
        Top = 80
        Width = 565
        Height = 32
        Align = alBottom
        TabOrder = 5
        Visible = False
        object lParam: TLabel
          Left = 8
          Top = 8
          Width = 32
          Height = 13
          Caption = 'lParam'
        end
        object btnParam: TButton
          Left = 448
          Top = 4
          Width = 115
          Height = 25
          Caption = 'Adicionar Par'#226'metro'
          TabOrder = 1
          OnClick = btnParamClick
        end
        object edtParametro: TEdit
          Left = 48
          Top = 5
          Width = 121
          Height = 21
          TabOrder = 0
        end
      end
    end
  end
  object pnlAvancado: TPanel
    Left = 0
    Top = 370
    Width = 752
    Height = 91
    Align = alBottom
    TabOrder = 1
    Visible = False
    DesignSize = (
      752
      91)
    object Label1: TLabel
      Left = 8
      Top = 8
      Width = 48
      Height = 13
      Caption = 'Condi'#231#227'o:'
    end
    object Label2: TLabel
      Left = 160
      Top = 8
      Width = 45
      Height = 13
      Caption = 'Tabela 1:'
    end
    object Label3: TLabel
      Left = 312
      Top = 8
      Width = 45
      Height = 13
      Caption = 'Tabela 2:'
    end
    object Label4: TLabel
      Left = 160
      Top = 48
      Width = 96
      Height = 13
      Caption = 'Campo da Tabela 1:'
    end
    object Label5: TLabel
      Left = 312
      Top = 48
      Width = 96
      Height = 13
      Caption = 'Campo da Tabela 2:'
    end
    object cbCondicao: TComboBox
      Left = 8
      Top = 24
      Width = 145
      Height = 21
      AutoComplete = False
      AutoDropDown = True
      AutoCloseUp = True
      Style = csDropDownList
      CharCase = ecUpperCase
      ItemHeight = 13
      TabOrder = 0
      OnExit = cbCondicaoExit
      Items.Strings = (
        'WHERE'
        'INNER JOIN'
        'LEFT JOIN'
        'RIGHT JOIN'
        'ORDER BY')
    end
    object cbTabela1: TComboBox
      Left = 160
      Top = 24
      Width = 145
      Height = 21
      AutoComplete = False
      AutoDropDown = True
      AutoCloseUp = True
      Style = csDropDownList
      CharCase = ecUpperCase
      ItemHeight = 13
      TabOrder = 1
      OnExit = cbTabela1Exit
    end
    object cbTabela2: TComboBox
      Left = 312
      Top = 24
      Width = 145
      Height = 21
      AutoComplete = False
      AutoDropDown = True
      AutoCloseUp = True
      Style = csDropDownList
      CharCase = ecUpperCase
      ItemHeight = 13
      TabOrder = 2
      OnExit = cbTabela2Exit
    end
    object cbCampo1: TComboBox
      Left = 160
      Top = 64
      Width = 145
      Height = 21
      AutoComplete = False
      AutoDropDown = True
      AutoCloseUp = True
      Style = csDropDownList
      CharCase = ecUpperCase
      ItemHeight = 13
      TabOrder = 3
    end
    object cbCampo2: TComboBox
      Left = 312
      Top = 64
      Width = 145
      Height = 21
      AutoComplete = False
      AutoDropDown = True
      AutoCloseUp = True
      Style = csDropDownList
      CharCase = ecUpperCase
      ItemHeight = 13
      TabOrder = 4
    end
    object btnAdicionar: TButton
      Left = 648
      Top = 10
      Width = 100
      Height = 25
      Anchors = [akTop, akRight]
      Caption = 'Adicionar Condi'#231#227'o'
      TabOrder = 5
      OnClick = btnAdicionarClick
    end
    object btnRetirar: TButton
      Left = 648
      Top = 34
      Width = 100
      Height = 25
      Anchors = [akTop, akRight]
      Caption = 'Retirar Condi'#231#227'o'
      TabOrder = 6
      OnClick = btnRetirarClick
    end
    object btnDelCondicoes: TButton
      Left = 648
      Top = 58
      Width = 100
      Height = 25
      Anchors = [akTop, akRight]
      Caption = 'Retirar Todas'
      TabOrder = 7
      OnClick = btnDelCondicoesClick
    end
  end
  object DSGrid: TDataSource
    DataSet = SQLC_Grid
    Left = 393
    Top = 168
  end
  object SQLC_Grid: TSQLClientDataSet
    Aggregates = <>
    Options = [poDisableInserts, poDisableEdits, poDisableDeletes, poAllowCommandText]
    ObjectView = True
    Params = <>
    ReadOnly = True
    BeforeOpen = SQLC_GridBeforeOpen
    DBConnection = DtmGeral.ConexaoBanco
    Left = 560
    Top = 240
  end
  object SQLC_Consultas: TSQLClientDataSet
    CommandText = 'SELECT * FROM CONSULTAS_SQL'
    Aggregates = <>
    Options = [poAllowCommandText]
    ObjectView = True
    Params = <>
    DBConnection = DtmGeral.ConexaoBanco
    Left = 385
    Top = 417
  end
end
